using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using PlugNT.Safe;
using PlugNT.Custom;
using PlugNT.Cms.Model;
namespace PlugNT.Cms.BLL
{
    public class GroupPages
    {

        private static readonly PlugNT.Cms.DAL.GroupPages dal = new PlugNT.Cms.DAL.GroupPages();






        public GroupPagesInfo GetGroupPagesInfo(string codeno)
        {
            return dal.GetGroupPagesInfo(StringHelper.SqlFilter(codeno));
        }

        public bool Exist(string codeno)
        {
            return dal.Exist(codeno);
        }

        public string GetPageName(string codeno)
        {
            return dal.GetPageName(StringHelper.SqlFilter(codeno));
        }






        public DataTable GetGroupPagesTable(string codeno)
        {
            return dal.GetGroupPagesTable(StringHelper.SqlFilter(codeno));
        }








        public bool Add(GroupPagesInfo model)
        {
            return dal.Add(model);
        }







        public bool Update(string codeno,GroupPagesInfo model)
        {
            return dal.Update(codeno,model);
        }






        public bool Delete(string codeno)
        {
            return dal.Delete(StringHelper.SqlFilter(codeno));
        }

        public bool Delete(int id)
        {
            return dal.Delete(id);
        }


        public DataTable GetList()
        {
            return dal.GetList("", false);
        }


        public DataTable GetList(int topCount, int currPageCount, bool showSql, out int recordCount)
        {
            recordCount = dal.GetCount("");
            return dal.GetList(topCount, currPageCount, "", showSql);
        }

































    }
}
